package com.idanchuang.project.basic.feign.client.impl;

import com.idanchuang.component.base.JsonResult;
import com.idanchuang.project.basic.feign.client.SampleFeignClient;
import com.idanchuang.project.basic.feign.dto.MessageDTO;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务提供者对RPC接口实现样例
 *
 * @author yjy
 * @date 2020/5/14 12:59
 **/
@RestController
public class SampleFeignClientImpl implements SampleFeignClient {

    @Override
    public JsonResult<String> hello(MessageDTO msg) {
        return JsonResult.success(msg.getTitle());
    }

}
